package com.myaxuan.service;

import com.myaxuan.service.impl.HelloRemoteHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by pc255 on 2018/4/12.
 */

@FeignClient(name="springcloudproducer" , fallback = HelloRemoteHystrix.class)
public interface HelloService {
	
	@RequestMapping("hello")
	String hello(@RequestParam(value = "name") String name);
}
